import Vue from 'vue'
import App from './app.vue'
import axios from './http'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import router from './router'
import store from './store'

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;

import moment from 'moment'
// 定义时间的全局过滤器
Vue.filter('dataFormatTime', function (dataStr, pattern='YYYY-MM-DD HH:mm:ss') {
    return moment(dataStr).format(pattern)
});

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");